package com.yc.weixin.bean.responseMessage;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import org.eclipse.persistence.oxm.annotations.XmlCDATA;
/**
 * 图文
 * @XmlRootElement 将一个Java类映射为一段XML的根节点
 * @author pj
 */
@XmlRootElement(name="xml")
public class ResponseArticleMessage extends ResponseBaseMessage {
	private static final long serialVersionUID = -8394757962899674624L;

	private List<ResponseArticle> articles;

	private int articleCount;
	@XmlElementWrapper(name="Articles") 
	@XmlElement(name="item")
	public List<ResponseArticle> getArticles() {
		return articles;
	}

	public void setArticles(List<ResponseArticle> articles) {
		this.articles = articles;
	}
	@XmlCDATA
	@XmlElement(name="ArticleCount")
	public int getArticleCount() {
		return articleCount;
	}

	public void setArticleCount(int articleCount) {
		this.articleCount = articleCount;
	}

	@Override
	public String toString() {
		return "ResponseArticleMessage [articles=" + articles
				+ ", articleCount=" + articleCount + "]";
	}

	
}
